const mongoose = require('mongoose')
mongoose.Promise = global.Promise
// mongoose.set('useCreateIndex', true);
mongoose.set('strictQuery', false)

const db = {}

db.mongoose = mongoose

db.user = require('./user.model')
db.role = require('./role.model')
db.tag = require('./tag.model')
db.protocolDriverInstance = require('./protocolDriverInstance.model')
db.protocolConnection = require('./protocolConnection.model')
db.userAction = require('./userAction.model')

module.exports = db
